package tt.dz.mvc.controller.middleware;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import tt.dz.entity.base.OmsLog;
import tt.dz.service.middleware.OmsLogService;

@Controller
@RequestMapping("/omsLog")
public class OmsLogController 
{
	@Autowired
	OmsLogService omsLogService;
//	@RequestMapping(value = "/getAllEmployees", method = RequestMethod.GET)
	@RequestMapping(value = "/getAll", method = RequestMethod.GET)
	public String getAll(Model model)
	{
		List<OmsLog> list =  omsLogService.getAll();
		model.addAttribute("omsLogs", list);
		return "employeesListDisplay";
	}
}